package com.mjt.admin.service;

import com.mjt.admin.model.RespDataBean;
import com.mjt.admin.pojo.Customer;
import com.baomidou.mybatisplus.extension.service.IService;
import com.mjt.admin.query.CustomerQuery;

/**
 * <p>
 * 客户表 服务类
 * </p>
 *
 * @author 莫某人
 * @since 2021-11-01
 */
public interface ICustomerService extends IService<Customer> {

    /**
     * @description 获取客户列表
     * @author 莫某人
     * @date 16:38 2021/11/1
 * @param customerQuery
     * @return {@link RespDataBean< Customer>}
     **/
    RespDataBean<Customer> customerList(CustomerQuery customerQuery);

    /**
     * @description 添加客户信息
     * @author 莫某人
     * @date 16:55 2021/11/1
 * @param customer
     * @return {@link }
     **/

    void saveCustomer(Customer customer);

    Customer getByName(String name);

    void updateCustomer(Customer customer);

    void deleteCustomer(Integer[] ids);


}
